#!/usr/bin/env python

import glob,os
from distutils.core import setup, Extension
from distutils.command.install_data import install_data

class smart_install_data(install_data):
    # not currently used
    def run(self):
        os.system("cd data; for i in *.gz; do gunzip < $i > $(basename $i .gz); done")
        return install_data.run(self)

scripts = """
llcat llccluster llclassify llcluster lldegrade lldstats lldump lledit
llnneval llexceptions llgen lllinegen
llmlp llnnlin llnormalize llrejects llrel llstats
llshuffle llsigmas llzoom llgtstats llfixclasses 
showclasses showgrid showlog shownn
showvar
""".split() # llrellin llrlin # llnn

setup (name = 'llpy',
       version = '0.1',
       author      = "Thomas Breuel",
       description = """Python bindings for OCRopus""",
       packages = ["llpy"],
       scripts = scripts,
       data_files=[('share/ocropus',glob.glob("*.glade"))],
       )

